package com.jiesai.amaq.canines.project.dogs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jiesai.amaq.canines.project.dogs.mapper.DogImmuneMapper;
import com.jiesai.amaq.canines.project.dogs.domain.DogImmune;
import com.jiesai.amaq.canines.project.dogs.service.IDogImmuneService;

/**
 * 城市犬只免疫登记Service业务层处理
 * 
 * @author admin
 * @date 2021-11-22
 */
@Service
public class DogImmuneServiceImpl implements IDogImmuneService 
{
    @Autowired
    private DogImmuneMapper dogImmuneMapper;

    /**
     * 查询城市犬只免疫登记
     * 
     * @param id 城市犬只免疫登记主键
     * @return 城市犬只免疫登记
     */
    @Override
    public DogImmune selectDogImmuneById(Long id)
    {
        return dogImmuneMapper.selectDogImmuneById(id);
    }

    /**
     * 查询城市犬只免疫登记列表
     * 
     * @param dogImmune 城市犬只免疫登记
     * @return 城市犬只免疫登记
     */
    @Override
    public List<DogImmune> selectDogImmuneList(DogImmune dogImmune)
    {
        return dogImmuneMapper.selectDogImmuneList(dogImmune);
    }

    /**
     * 新增城市犬只免疫登记
     * 
     * @param dogImmune 城市犬只免疫登记
     * @return 结果
     */
    @Override
    public int insertDogImmune(DogImmune dogImmune)
    {
        return dogImmuneMapper.insertDogImmune(dogImmune);
    }

    /**
     * 修改城市犬只免疫登记
     * 
     * @param dogImmune 城市犬只免疫登记
     * @return 结果
     */
    @Override
    public int updateDogImmune(DogImmune dogImmune)
    {
        return dogImmuneMapper.updateDogImmune(dogImmune);
    }

    /**
     * 批量删除城市犬只免疫登记
     * 
     * @param ids 需要删除的城市犬只免疫登记主键
     * @return 结果
     */
    @Override
    public int deleteDogImmuneByIds(Long[] ids)
    {
        return dogImmuneMapper.deleteDogImmuneByIds(ids);
    }

    /**
     * 删除城市犬只免疫登记信息
     * 
     * @param id 城市犬只免疫登记主键
     * @return 结果
     */
    @Override
    public int deleteDogImmuneById(Long id)
    {
        return dogImmuneMapper.deleteDogImmuneById(id);
    }
}
